const faker = require('faker/locale/zh_CN')

module.exports = () => {
  let data = {},
      articles = [];

  for(let i = 1; i < 100; i++) {
    const article = {
      id: i,
      name: faker.name.title(),
      age: faker.random.number(),
      img: faker.image.imageUrl(),
      text: faker.random.words(),
      phone: faker.phone.phoneNumber()
    }
    articles.push(article)
  }

  data = {
    articles
  }
  return data
}
